home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
cuj0593.zip
/
1105034B
< prev
next >
Wrap
Text File
|
1993-05-16
|
459b
|
30 lines
// Copyright (C) 1992 by Nicholas Wilt. All rights reserved.
#include <iostream.h>
#include <stdlib.h>
#include "insort.h"
#define NUMINTS 10
int
main()
{
int i;
int x[NUMINTS];
randomize();
for (i = 0; i < NUMINTS; i++) {
x[i] = rand();
cout << x[i] << ' ';
}
cout << '\n';
InsertionSort(x, NUMINTS);
for (i = 0; i < NUMINTS; i++)
cout << x[i] << ' ';
cout << '\n';
return 0;
}